package test.serializableTest;


/** 
 * Created on 2011-3-11 
 * @author         shixing_11@sina.com 
 * @version        1.0 
 */  
public class Person {  
    private int age;  
      
    private String name;  
      
    private String mobile;  
      
    private transient String address;  //不被序列化的属性  
      
    public Person(){  
        System.out.println("父类没有实现序列化接口时，默认构造器会被调用");  
    }  
      
    public Person(String name,int age){  
        this.name = name;  
        this.age = age;  
    }  
      
    public int getAge(){  
        return age;  
    }  
    public void setAge(int age){  
        this.age = age;  
    }  
    public String getName(){  
        return name;  
    }  
    public void setName(String name){  
        this.name = name;  
    }  
    public String getMobile(){  
        return mobile;  
    }  
    public void setMobile(String mobile){  
        this.mobile = mobile;  
    }  
      
    public void setAddress(String address) {  
        this.address = address;  
    }  
      
    public String getAddress(){  
        return address;  
    }  
      
}   
